#include "diaprint.h"
#include "ui_diaprint.h"
#include<QTextDocument>

DiaPrint::DiaPrint(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DiaPrint)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::Widget);
}

void DiaPrint::setText(const QString &text){
    this->ui->textBrowser->document()->setHtml(text);
}

DiaPrint::~DiaPrint()
{
    delete ui;
}

QTextDocument * DiaPrint::getDoc(){
    return this->ui->textBrowser->document();
}
